package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.EsSkuUpTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author zhuguanming
 * @date 2021/5/26
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @PostMapping("/es/search/bluk/product")
    R bulkProduct(@RequestBody List<EsSkuUpTo> esSkuUpTos);
}
